package com.feihao.zhou.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;


@Component
@PropertySource("classpath:list.properties")
public class ServiceTest {

   /* @Autowired
    @Value("123")
    List<String> list = new ArrayList<String>();*/

    @Value("#{${map.config}}")
    private ConcurrentHashMap<String,String> map;

    public void test(){
//        System.out.println(list);
        System.out.println(map);
    }

}
